package dao;

public class ConexaoBanco {

	private java.sql.Connection conexao;
	
	public java.sql.Connection openConexao(){
		try{
			
			Class.forName("org.gjt.mm.mysql.Driver");
			conexao = java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/tulipa", "root", "hehehe");
			
		}catch (Exception e) {
			System.out.println("essa budega nao conectou!!!!");
		}
		
		return conexao;
	}
	
	public void closeConexao(){
		try {
			conexao.close();
		} catch (Exception e) {
			System.out.println("essa budega nao desconectou!!!!");
		}
	}
}
